/* 寻找搭子页面样式 */
.find-buddy-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  background-color: #f5f5f5;
  min-height: 100vh;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  background: #ffffff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.header-title h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: #666;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-title p {
  margin: 4px 0 0 0;
  color: #888;
  font-size: 14px;
}

.calendar-section {
  margin-bottom: 24px;
}

.calendar-card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border-radius: 12px;
}

.activity-calendar {
  width: 100%;
}

.calendar-date {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 4px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
}

.date-number {
  font-weight: 500;
  margin-bottom: 2px;
  flex-shrink: 0;
}

.activity-dots {
  display: flex;
  gap: 1px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  margin-top: auto;
}

.activity-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #1890ff;
  transition: transform 0.2s ease;
  cursor: pointer;
  flex-shrink: 0;
}

.activity-dot:hover {
  transform: scale(1.3);
  z-index: 1;
}

.activity-dot.more {
  width: auto;
  height: auto;
  border-radius: 6px;
  background: #f0f0f0;
  color: #666;
  font-size: 7px;
  padding: 1px 2px;
  line-height: 1;
  border: 1px solid #d9d9d9;
  min-width: 12px;
  text-align: center;
}

.activities-section {
  margin-bottom: 24px;
}

.activities-card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border-radius: 12px;
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 16px;
}

.activity-card {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.activity-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  border-color: #1890ff;
}

/* 自己发布的活动样式 */
.activity-card.own-activity {
  background: #f8f8f8;
  border-color: #d9d9d9;
  opacity: 0.8;
}

.activity-card.own-activity:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transform: none;
  border-color: #d9d9d9;
}

.activity-card.own-activity .activity-title {
  color: #8c8c8c;
}

.activity-card.own-activity .activity-description {
  color: #a8a8a8;
}

.activity-card.own-activity .activity-time,
.activity-card.own-activity .location-info,
.activity-card.own-activity .participant-info {
  color: #a8a8a8;
}

/* 自己活动的按钮样式 */
.own-activity-btn {
  background-color: #d9d9d9 !important;
  border-color: #d9d9d9 !important;
  color: #8c8c8c !important;
  cursor: not-allowed !important;
}

.own-activity-btn:hover {
  background-color: #d9d9d9 !important;
  border-color: #d9d9d9 !important;
  color: #8c8c8c !important;
  transform: none !important;
  box-shadow: none !important;
}

/* 已申请活动的按钮样式 */
.applied-activity-btn {
  background-color: #52c41a !important;
  border-color: #52c41a !important;
  color: #ffffff !important;
  cursor: not-allowed !important;
  opacity: 0.8 !important;
}

.applied-activity-btn:hover {
  background-color: #52c41a !important;
  border-color: #52c41a !important;
  color: #ffffff !important;
  transform: none !important;
  box-shadow: none !important;
  opacity: 0.8 !important;
}

.activity-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.activity-time {
  color: #666;
  font-size: 13px;
  font-weight: 500;
}

.activity-content {
  margin-bottom: 12px;
}

.activity-title {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
}

.activity-description {
  margin: 0;
  color: #666;
  font-size: 14px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.activity-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.location-info,
.participant-info {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #666;
  font-size: 13px;
}

.activity-tags {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.activity-tag {
  font-size: 11px;
}

.activity-footer {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  border-top: 1px solid #f0f0f0;
  padding-top: 12px;
}

.empty-activities {
  text-align: center;
  padding: 40px 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .page-header {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
    padding: 20px;
  }
  
  .activities-grid {
    grid-template-columns: 1fr;
  }
  
  .activity-card {
    padding: 12px;
  }
  
  .activity-title {
    font-size: 15px;
  }
}

/* 浅色模式支持 */
@media (prefers-color-scheme: dark) {
  .page-header,
  .calendar-card,
  .activities-card,
  .activity-card {
    background: #ffffff;
    border-color: #e8e8e8;
    color: #333333;
  }
  
  .header-title h2 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .header-title p,
  .activity-time,
  .location-info,
  .participant-info {
    color: #666;
  }
  
  .activity-title {
    color: #333;
  }
  
  .activity-description {
    color: #666;
  }
  
  .activity-dot.more {
    background: #f0f0f0;
    color: #666;
  }
  
  .activity-footer {
    border-color: #f0f0f0;
  }
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.activity-card {
  animation: fadeInUp 0.6s ease;
}

.activity-card:nth-child(1) { animation-delay: 0.1s; }
.activity-card:nth-child(2) { animation-delay: 0.2s; }
.activity-card:nth-child(3) { animation-delay: 0.3s; }
.activity-card:nth-child(4) { animation-delay: 0.4s; }

/* 日历自定义样式 */
.find-buddy-container .n-calendar .n-calendar-date {
  transition: all 0.3s ease;
}

.find-buddy-container .n-calendar .n-calendar-date:hover {
  background-color: rgba(24, 144, 255, 0.1);
  transform: scale(1.05);
}

.find-buddy-container .n-calendar .n-calendar-date--selected {
  background-color: #1890ff;
  color: white;
}

/* 筛选器样式 */
.find-buddy-container .header-actions .n-select {
  min-width: 120px;
}

.find-buddy-container .header-actions .n-button {
  transition: all 0.3s ease;
}

.find-buddy-container .header-actions .n-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

/* 滚动条美化 */
.find-buddy-container ::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.find-buddy-container ::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 3px;
}

.find-buddy-container ::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #d9d9d9 0%, #bfbfbf 100%);
  border-radius: 3px;
}

.find-buddy-container ::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #bfbfbf 0%, #a6a6a6 100%);
}
